package com.huangkailong.designpattern.facade;

/**
 * 门面模式测试
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    /**
     * main方法.
     *
     */
    public static void main(String[] args) {
        QualificationService qualificationService = new QualificationService();
        PaymentService paymentService = new PaymentService();
        LogisticsService logisticsService = new LogisticsService();
        GiftFacadeService giftFacadeService =
            new GiftFacadeService(qualificationService, paymentService,
                logisticsService);
        GiftInfo giftInfo = new GiftInfo();
        giftInfo.setName("《设计模式》");
        giftFacadeService.exchange(giftInfo);

    }
}
